package com.china08.yxyapi.repository.mg.continuedu;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

import com.china08.yxyapi.entity.mg.continuedu.YxyContinueduUserFavorite;

public interface YxyContinueduUserFavoriteRepository extends MongoRepository<YxyContinueduUserFavorite, String> {

    YxyContinueduUserFavorite findById(String id);

    Page<YxyContinueduUserFavorite> findByUserId(String userId, Pageable pageable);

    Page<YxyContinueduUserFavorite> findByUserIdAndLessonNameContaining(String userId, String keyword,
            Pageable pageable);

}
